|
|
|
|
|
|
|
Describing the Properties |
|
|
|
|
|
|
|
|
The object, theBusiness, has a simple property, MyName, for example only. The object, theBusinessMemento, has an important state property that holds the Memento array, arrMemento, for theBusiness object. The object, theFormController, has an object property, theBusinessMemento, which is a reference to the Memento object created by theBusiness object. |
|
|
|
|
|
|
|
|
In designing graphical user interfaces, it is important to incorporate only as many controls as your user needs on any given form. Forms should load as quickly as possible. String values should originate in resource files when possible. The next two sections briefly examine these issues. |
|
|
|
|
|
|
|
|
Users of your software want to work as quickly and safely as possible. You provide speed through shortcut keys and controls that are logically arranged in order, based on how users complete their tasks. Therefore, in certain countries such as the United States, and in European nations, that read information from left to right, you would place a Done button somewhere near the bottom-right corner of the form. In countries in the Middle East, you would probably place the Done button at the bottom left. |
|
|
|
|
|
|
|
|
Moreover, you should name your controls according to the names of the properties of important business/domain classes. This will help you in mapping displayed data to key business class instances. Colors need to be soft for normal tasks and bright for warnings or important messages that require the user's utmost attention. Text boxes should have black text with a white background color. Images displayed should not be so large that they slow down the loading and displaying of forms. Finally, controls on the form should be placed with enough space between them to soothe the eyes. |
|
|
|
|
|
|
|
|
Internationalization with Resource Files and the Registry |
|
|
|
|
|
|
|
|
With the Internet making geopolitical borders seemingly disappear, Visual Basic programmers are finding it necessary to cater their software to users of other countries. This catering of software for multinational users is generally known as either internationalization or localization. Resource files are very fitting for catering to multination users, particularly if you develop software for sale on the Internet, where users reside in every country in the world. |
|
|
|
|
|